import rules from "@/utils/validate";
export const formList = [
  {
    key: "dict_id",
    label: "所属分类",
    type: "dict",
    dictId: "3",
    placeholder: "请选择",
    rules: [{ required: true, message: "请选择", trigger: "blur" }],
  },
  {
    key: "url",
    label: "网址",
    placeholder: "请输入",
    rules: [{ required: true, message: "请输入", trigger: "blur" }],
  },
  {
    key: "title",
    label: "标题",
    placeholder: "请输入",
  },
  {
    key: "created_at",
    label: "发现时间",
    type: "date",
    placeholder: "请选择",
  },
  {
    key: "aircraft",
    label: "飞机",
    placeholder: "请输入",
  },
  {
    key: "email",
    label: "邮箱",
    placeholder: "请输入",
    rules: [
      { pattern: rules.email, message: "邮箱格式不正确", trigger: "blur" },
    ],
  },
  {
    key: "description",
    label: "备注",
    placeholder: "请输入",
  },
];
